package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhuanjiabiandongshenbaoLizhiMapper;
import com.ruoyi.system.domain.ZhuanjiabiandongshenbaoLizhi;
import com.ruoyi.system.service.IZhuanjiabiandongshenbaoLizhiService;
import com.ruoyi.common.core.text.Convert;

/**
 * 专家变动申报_离职Service业务层处理
 * 
 * @author dy
 * @date 2024-05-27
 */
@Service
public class ZhuanjiabiandongshenbaoLizhiServiceImpl implements IZhuanjiabiandongshenbaoLizhiService 
{
    @Autowired
    private ZhuanjiabiandongshenbaoLizhiMapper zhuanjiabiandongshenbaoLizhiMapper;

    /**
     * 查询专家变动申报_离职
     * 
     * @param shenbaoid 专家变动申报_离职主键
     * @return 专家变动申报_离职
     */
    @Override
    public ZhuanjiabiandongshenbaoLizhi selectZhuanjiabiandongshenbaoLizhiByShenbaoid(String shenbaoid)
    {
        return zhuanjiabiandongshenbaoLizhiMapper.selectZhuanjiabiandongshenbaoLizhiByShenbaoid(shenbaoid);
    }

    /**
     * 查询专家变动申报_离职列表
     * 
     * @param zhuanjiabiandongshenbaoLizhi 专家变动申报_离职
     * @return 专家变动申报_离职
     */
    @Override
    public List<ZhuanjiabiandongshenbaoLizhi> selectZhuanjiabiandongshenbaoLizhiList(ZhuanjiabiandongshenbaoLizhi zhuanjiabiandongshenbaoLizhi)
    {
        return zhuanjiabiandongshenbaoLizhiMapper.selectZhuanjiabiandongshenbaoLizhiList(zhuanjiabiandongshenbaoLizhi);
    }

    /**
     * 新增专家变动申报_离职
     * 
     * @param zhuanjiabiandongshenbaoLizhi 专家变动申报_离职
     * @return 结果
     */
    @Override
    public int insertZhuanjiabiandongshenbaoLizhi(ZhuanjiabiandongshenbaoLizhi zhuanjiabiandongshenbaoLizhi)
    {
        return zhuanjiabiandongshenbaoLizhiMapper.insertZhuanjiabiandongshenbaoLizhi(zhuanjiabiandongshenbaoLizhi);
    }

    /**
     * 修改专家变动申报_离职
     * 
     * @param zhuanjiabiandongshenbaoLizhi 专家变动申报_离职
     * @return 结果
     */
    @Override
    public int updateZhuanjiabiandongshenbaoLizhi(ZhuanjiabiandongshenbaoLizhi zhuanjiabiandongshenbaoLizhi)
    {
        return zhuanjiabiandongshenbaoLizhiMapper.updateZhuanjiabiandongshenbaoLizhi(zhuanjiabiandongshenbaoLizhi);
    }

    /**
     * 批量删除专家变动申报_离职
     * 
     * @param shenbaoids 需要删除的专家变动申报_离职主键
     * @return 结果
     */
    @Override
    public int deleteZhuanjiabiandongshenbaoLizhiByShenbaoids(String shenbaoids)
    {
        return zhuanjiabiandongshenbaoLizhiMapper.deleteZhuanjiabiandongshenbaoLizhiByShenbaoids(Convert.toStrArray(shenbaoids));
    }

    /**
     * 删除专家变动申报_离职信息
     * 
     * @param shenbaoid 专家变动申报_离职主键
     * @return 结果
     */
    @Override
    public int deleteZhuanjiabiandongshenbaoLizhiByShenbaoid(String shenbaoid)
    {
        return zhuanjiabiandongshenbaoLizhiMapper.deleteZhuanjiabiandongshenbaoLizhiByShenbaoid(shenbaoid);
    }
}
